package com.zbkj.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 车辆表
 * </p>
 *
 * @author keNan
 * @since 2025-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_vehicle")
@ApiModel(value = "Vehicle对象", description = "车辆表")
public class Vehicle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "配送员id")
    private Integer deliveryPersonnelId;

    @ApiModelProperty(value = "车牌号")
    private String licensePlateNumber;

    @ApiModelProperty(value = "车辆品牌")
    private String vehicleBrand;

    @ApiModelProperty(value = "车辆类型(1轿车 2货车)")
    private Integer vehicleType;

    @ApiModelProperty(value = "gps编号")
    private String gpsNumber;

    @ApiModelProperty(value = "车辆用途")
    private Integer vehicleUsage;

    @ApiModelProperty(value = "车辆状态")
    private Integer vehicleStatus;

    @ApiModelProperty(value = "备注说明")
    private String remark;

    @ApiModelProperty(value = "是否删除(0未删除  1已删除)")
    private Integer isDel;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @ApiModelProperty(value = "驾驶员名称")
    @TableField(exist = false)
    private String deliveryPersonnelName;

    @ApiModelProperty(value = "性别(1:男  0:女  2:未知)")
    @TableField(exist = false)
    private Integer sex;

    @ApiModelProperty(value = "驾驶员联系方式")
    @TableField(exist = false)
    private String deliveryPersonnelPhone;

    @ApiModelProperty(value = "门店名称")
    @TableField(exist = false)
    private String roomName;
}
